home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Applications
/
Moscow ML 1.31
/
source code
/
mosml
/
src
/
test
/
test6.sml
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-07-03
|
360 b
|
15 lines
|
[
TEXT/R*ch
]
exception E;
fun f() = let exception E in raise E end;
f() handle E => "WRONG: Top-level E is caught"
| _ => "OK";
val elist = [E, Size];
exception E' = E;
(raise E) handle E' => "OK";
(raise E') handle E => "OK";
exception G of int;
(raise G 20) handle G 10 => "WRONG: G 10"
| E => "WRONG: E"
| G 20 => "OK";